﻿using System.Data.Entity;
using Metro.Kashikoi.Service.Common.Entity;
using Metro.Kashikoi.ServiceContract.Location;

namespace Metro.Kashikoi.Service.Location.Entity
{
    /// <summary>
    /// The database context of entity framework.
    /// </summary>
    class Context : ContextBase, IUnitOfWork
    {
        #region Constructors

        /// <summary>
        /// Initializes a new instance of the <see cref="Context"/> class.
        /// </summary>
        public Context()
            : base("Location")
        {
        }

        #endregion

        #region Properties

        /// <summary>
        /// Gets or sets the organization.
        /// </summary>
        /// <value>
        /// The organization.
        /// </value>
        public IDbSet<Region> Region { get; set; }

        #endregion
    }
}
